#!/usr/bin/python
# -*- coding:utf-8 -*-
from django.urls import path
from .views import *
urlpatterns = [
    # 图书商城前台首页
    path('', IndexViews.index,name='myhome_index'),
    path('list/<int:tid>', IndexViews.booklist,name='myhome_list'), # 列表
    path('detail/<int:pid>', IndexViews.detail,name='myhome_detail'),    # 详情
    path('cart/index', CartViews.index,name='myhome_cart'),    # 购物车列表
    # 加入购物车
    path('cart/add', CartViews.add,name='myhome_add'),
    path('cart/edit', CartViews.edit,name='myhome_edit'),
    path('cart/delete', CartViews.delete,name='myhome_delete'),
    # 登陆页面
    path('login', LoginViews.login,name='myhome_login'),
    path('dologin', LoginViews.dologin,name='myhome_dologin'),
    path('logout', LoginViews.logout,name='myhome_logout'),
    # 注册页面
    path('register', LoginViews.register,name='myhome_register'),
    path('doregister', LoginViews.doregister,name='myhome_doregister'),
    path('checkphone', LoginViews.checkphone,name='myhome_checkphone'),
    path('shenphone', LoginViews.shenphone,name='myhome_shenphone'),
]